/**
 * 2025/01/01 - 2025/12/31
 */
package com.snail.starter.utils.tools;

import cn.hutool.crypto.digest.MD5;

/**
 * @author zgadmin
 * @date 2025/8/27 09:28
 */
public class CryUtils {

    public static String md5(String data, String salt) {
        MD5 md5 = new MD5(salt.getBytes());
        return md5.digestHex(data);
    }

    public static String md5(byte[] data, String salt) {
        MD5 md5 = new MD5(salt.getBytes());
        return md5.digestHex(data);
    }


}